package kin.listener.system;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class TempFileListener implements ServletContextListener{
	 private TempFileManager tempFileManager;
	 public void contextInitialized(ServletContextEvent arg0) {
	 //删除临时文件夹及文件
		 tempFileManager = new TempFileManager();
	  tempFileManager.start();  
	 }

	 public void contextDestroyed(ServletContextEvent arg0) {
		 tempFileManager.stop();
	  //timer.cancel();
	 }

	 
	 
	 
	 
	}
